{include file="head" /}

<body ng-app="starter" ng-controller="AppCtrl" class="grade-a platform-browser platform-win32 platform-ready">
<ion-nav-bar class="bar-stable headerbar nav-bar-container hide" nav-bar-transition="ios" nav-bar-direction="none" nav-swipe="">
<div class="nav-bar-block" nav-bar="cached"><ion-header-bar class="bar-stable headerbar bar bar-header" align-title="center"><div class="title title-center header-item"></div></ion-header-bar></div><div class="nav-bar-block" nav-bar="active"><ion-header-bar class="bar-stable headerbar bar bar-header" align-title="center"><div class="title title-center header-item"></div></ion-header-bar></div></ion-nav-bar>
<ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="none" nav-swipe=""><ion-view hide-nav-bar="true" class="signin-view pane" state="signin" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
<!--    <script src='//kefu.easemob.com/webim/easemob.js?configId=91732ede-6c66-460d-8cf3-2472e9e06395'></script>-->
<div class="signin">
<!--    <div style="padding-left: 70%">
        <button type="button" lang="cn" class="bth">简体中文</button>
        <button type="button" lang="en" class="bth">English</button>
    </div>
    <script>
        $('.bth').click(function () {
            var data = {'lang': $(this).attr('lang')};
            $.get("{:url('Login/lang')}", data, function () {
                location.reload();
            });
        });
    </script>-->
    <div class="signin-header">
        <div class="system-logo" ng-show="show_system_logo">

            <img  alt="" src="/static/public/images/appgf.png" style="margin:0 auto;">
        </div>
        <div class="system-name ng-binding ng-hide" ng-show="show_system_name" style="">

        </div>
    </div>
 <form method="post" id="formid">
    <div class="signin-content">

        <div class="list">
            <label class="item item-input">
                <i class="input-icon ion-android-person"></i>
                <input type="text" placeholder="{:lang('username')}" name="username" required="" class="ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required" style="">
            </label>
            <label class="item item-input">
                <i class="input-icon ion-locked"></i>
                <input type="password" placeholder="{:lang('password')}" name="upwd" required="" ng-keydown="go_signin()" class="ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required" style="">
            </label>
        </div>
        <p>
        	<span style="display: none;">{:lang('forgetPassword')}？</span>
    		<span class="ion-android-warning ng-hide" ng-show="show_sign_in_mistake" style="">&nbsp;{:lang('showSignInMistake')}</span>
    	</p>
        <div class="signin-action">
            <button class="newbutton sign_button" onclick="return checkform(this.form);">
                {:lang('login')}
            </button>
        </div>

    </div>
   </form>
    <div class="signin-footer" ng-show="if_signup">
        <a href="{:url('login/register')}">——&nbsp;&nbsp;{:lang('openAnAccount')}&nbsp;&nbsp;——</a>
    </div>
    <div class="signin-footer" ng-show="if_signup">
<!--        <a href="{:url('login/respass')}" >——&nbsp;&nbsp;{:lang('forgetPassword')}&nbsp;&nbsp;——</a>-->
      <a href="{$purl.value}" >——&nbsp;&nbsp;{:lang('forgetPassword')}&nbsp;&nbsp;——</a>
<!--        <a href="#" onClick="show_user_modal('modal-withcustomer')" >——&nbsp;&nbsp;{:lang('forgetPassword')}&nbsp;&nbsp;——</a>-->
    </div>
</div>
<div class="spinner-view hide">
    <div class="spinner">
        <div class="double-bounce1"></div>
        <div class="double-bounce2"></div>
    </div>
    <div class="message ng-binding" ng-class="{ 'fadein' : message }"></div>
</div>
</ion-view></ion-nav-view>


<div class="backdrop"></div><div class="ionic_toast"><div class="toast_section" ng-class="ionicToast.toastClass" ng-style="ionicToast.toastStyle" ng-click="hideToast()" style="display: none; opacity: 0;"><span class="ionic_toast_close"><i class="ion-android-close toast_close_icon"></i></span><span ng-bind-html="ionicToast.toastMessage" class="ng-binding"></span></div></div>
<div class="modal-backdrop hide modal-withcustomer " ><div class="modal-backdrop-bg"></div><div class="modal-wrapper" ng-transclude=""><ion-modal-view class="order-modal modal slide-in-up ng-leave ng-leave-active" style="transition-duration: 300ms; transform: translate(0px, 0px) translateZ(0px);">
    <ion-header-bar class="order-modal-header bar bar-header">
        <h1 class="title" style="left: 54px; right: 54px;">{:lang('onlineService')}</h1>
        <div class="close" onClick="hide_user_modal('modal-withcustomer')">
            <i class="icon ion-ios-arrow-left"></i>
        </div>
    </ion-header-bar>
    <ion-content class=" scroll-content ionic-scroll  has-header personalbg ">
        <div class="scroll " style="transform: translate3d(0px, 0px, 0px) scale(1);">

            <footer>
                <div style=" color: #fff;text-align: center;margin-bottom: 10px;">{:lang('pleaseIdentifyTheOnlyOfficialWeChat')}：
                    <span style="color:#ffc900;font-size:20px;"></span>
                </div>
                <div class="erwema_img">
                    <img alt="{$qcode.value}" src="{$qcode.src}">
                </div>
                <p>
                    <span><!--{$qcode.value}-->{:lang('onlineService')}</span>

                </p>
            </footer>

        </div>
        <div class="scroll-bar scroll-bar-v"><div class="scroll-bar-indicator scroll-bar-fade-out" style="transform: translate3d(0px, 0px, 0px) scaleY(1); height: 0px;"></div></div></ion-content>
</ion-modal-view></div></div>
<script>
    function checkform(form){
        var username = form.username.value;
        var upwd = form.upwd.value;
        if(!username){
            layer.msg("{:lang('usernameVerification')}");
            return false;
        }

        if (!upwd) {
            layer.msg("{:lang('passwordVerification')}");
            return false;
        }

        var data = $('#formid').serialize();
        var formurl = "{:Url('login/login')}";
        var locurl = "{:Url('index/index')}";

        WPpost(formurl,data,locurl);
        return false;
    }
</script>
</body></html>
